package com.example.demo.config;


public class WxPayInfoConfig {
    public final static String mchId = "********";
    public final static String appid = "********";
    public final static String apiV3Key = "********";

    public final static String privateKey = "xxxxxxxx";

    public final static String mchSerialNo = "XXXXXXXX";
    /**
     * 退款异步通知地址
     */
    public final static String refund_notify_url = "http://api.wx.com/refundNotify/refunded/wxNotify";
    /**
     * 下单异步通知地址，你后端的开放的接口地址，必须能外网访问，确保微信能正常调用，且不要加任何限制
     * 改成你自己的地址
     */
    public final static String pay_notify_url = "http://api.wx.com/payNotify/payed/wxNotify";
    /**
     * 证书相对路径
     */
    public final static String privateKeyPath = "wx/apiclient_key.pem";
    /**
     * 下单地址
     */
    public final static String singleUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/app";
    /**
     * 退款地址
     */
    public final static String refundUrl = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";
    /**
     * 查询订单地址
     * transaction_id：微信支付系统生成的订单号 或者 商户订单号
     * mchid：直连商户的商户号，由微信支付生成并下发
     * 组合地址：String url = String.format(WxPayInfoConfig.signUrl, transaction_id, WxPayInfoConfig.mchId);
     */
    public final static String queryUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/id/%s?mchid=%s";
    /**
     * 关闭订单地址
     */
    public final static String closeUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/%s/close";
}

